package com.steptime.usercenter.controller;

import com.steptime.model.User;
import com.steptime.usercenter.service.IUserService;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("users")
public class UserCenterController {

  @Autowired
  IUserService userService;

  @GetMapping
  public List<User> list() {
    List<User> userList = userService.findList(null);
    return userList;

  }

}
